/**
 * Created by Ztt on 2017/8/11.
 */

var arrays = require("./arrays")


var ret = arrays([
  {
      "type": "virtual",
      "virtual": "directleader"
  },
  {
      "type": "virtual",
      "virtual": "departleader"
  },
  {
      "type": "commissioner",
      "virtual": "报销出纳"
  },
  {
      "type": "commissioner",
      "virtual": "财务经理"
  }
]).groupBy("type");


console.log(ret)
